#ifndef STRING_UTIL_H_
#define STRING_UTIL_H_

#include <cstdint>
#include <string>
#include <cstring>
#include <vector>

class StringUtil
{
public:
    static void     HexStrToCharacter(const std::string & data, std::vector<uint8_t> & result);
    static void     DataToHexStr(const void * data, int data_length, std::string & result);
    static void     BeToHN(uint8_t * dst, const uint8_t * src, int length);
    static uint16_t BeToH16(uint16_t data);
    static uint16_t HtoBe16(uint16_t data);
    static uint32_t BeToH32(uint32_t data);
    static uint32_t HtoBe32(uint32_t data);
    static uint64_t BeToH64(uint64_t data);
    static uint64_t HtoBe64(uint64_t data);
};

#endif
